package com.woniu.mall.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author 坤
 * @since 2023-05-22
 */
@Getter
@Setter
  @TableName("t_mall_comment")
@ApiModel(value = "MallComment对象", description = "")
public class MallComment implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("评论id")
        @TableId(value = "comment_id", type = IdType.AUTO)
      private Integer commentId;

      @ApiModelProperty("商品id")
      private Integer productId;

      @ApiModelProperty("订单明细id")
      private Integer orderItemId;

      @ApiModelProperty("评论内容")
      private String content;

      @ApiModelProperty("评论用户id")
      private Integer userId;

      @ApiModelProperty("评论用户昵称")
      private String userName;

      @ApiModelProperty("星数")
      private Integer star;

      @ApiModelProperty("回复数量")
      private Integer replyCount;

      @ApiModelProperty("点赞数量")
      private Integer likeCount;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("回复内容")
      private String replyContent;
}
